package com.jdym.controller;


import com.jdym.R;
import com.jdym.entity.Message;
import com.jdym.service.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 留言反馈 前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-09-20
 */
@RestController
@RequestMapping("/message")
public class MessageController {
    @Autowired
    MessageService messageService;

    @RequestMapping("/insertMsg")
    public R insertMsg(Message message){
        messageService.getBaseMapper().insert(message);
        return R.ok();
    }

}

